import static org.junit.Assert.*;
import org.junit.Before;
import java.io.IOException;
import junit.framework.Assert;
import org.junit.Test;

public class TestOfficeServices {

	int port;
	
	@Before
	public void setup(){
		port = 10595;
	}
	
	@Test(expected=IOException.class)
	public void testOfficeServices() throws IOException{
		OfficeServices offServ = new OfficeServices(port);
		OfficeServices bogusServ = null;
		
		Assert.assertNotNull(offServ);  				// Object created?
		bogusServ = new OfficeServices(port); 	// Expect exception on port already assigned
	}
}
